/**
 * @format
 */
import {Navigation} from 'react-native-navigation';
import {AppRegistry} from 'react-native';
import App from './App';
// import {name as appName} from './app.json';

// AppRegistry.registerComponent(appName, () => App);
Navigation.registerComponent('App', () => App);

const WelcomeScreen = {
  root: {
    stack: {
      id: 'we',
      children: [
        {
          component: {
            name: 'App',
          },
        },
        {
          component: {
            name: 'App',
          },
        },
      ],
    },
  },
};

Navigation.events().registerAppLaunchedListener(() => {
  Navigation.setRoot(WelcomeScreen);
});
